package com.chenjt.jvm.second.five_classLoader;

/**
 * 注释：
 *
 * @author chenjt
 * @date 2025/7/2 14:48
 */
public class UserTest {

    public static void main(String[] args) {
        User user = new User();// 隐式加载

        try {
            // 显示加载
            Class clazz = Class.forName("com.chenjt.jvm.second.five_classLoader.User");
            // 显示加载
            ClassLoader.getSystemClassLoader().loadClass("com.chenjt.jvm.second.five_classLoader.User");

        } catch (ClassNotFoundException e) {
            throw new RuntimeException(e);
        }

    }

}
